FROM service-base:v1
MAINTAINER "maysham chinasoft_lgh@outlook.com"
ENV APP_NAME=register \
    APP_VERSION=2.1.2.RELEASE
EXPOSE 8761/tcp
WORKDIR /opt/service/$APP_NAME
COPY ./ /opt/service/$APP_NAME
RUN java -version && mvn -v && pwd && ls -l
ENTRYPOINT cd /opt/service/$APP_NAME && mvn clean package \
    && java -jar /opt/service/$APP_NAME/target/$APP_NAME-$APP_VERSION.jar


